<template>
  <NewCard title="编辑">
    <!-- 表单 -->
    <div class="pricing-for">
      <el-form
        ref="form"
        :model="editFrom"
        label-width="100px"
        label-position="left"
      >
        <el-form-item label="材料名称">
          <p>{{ editFrom.name }}</p>
        </el-form-item>
        <el-form-item label="手机号">
          <p>{{ editFrom.phone }}</p>
        </el-form-item>
        <el-form-item label="商务总监">
          <el-select v-model="editFrom.majordomo">
            <el-option label="曹建国" value="曹建国"> </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="商务经理">
          <el-select v-model="editFrom.manager">
            <el-option label="欧阳青" value="欧阳青"> </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="渠道">
          <el-select v-model="editFrom.channel">
            <el-option label="王健林" value="王健林"> </el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <SubBtn>
        <template slot="btn">
          <el-button round>重设</el-button>
          <el-button type="primary" round>保存</el-button>
        </template>
      </SubBtn>
    </div>
  </NewCard>
</template>

<script>
import NewCard from "@/wss/components/newCard.vue";
import SubBtn from "@/wss/components/subBtn.vue";
export default {
  name: "editFrom",
  components: { NewCard, SubBtn },
  data() {
    return {
      // 调价记录抽屉
      drawer: false,
      // 表单数据
      editFrom: {
        name: "高伟光",
        phone: "138 0013 8000",
        majordomo: "曹建国",
        manager: "欧阳青",
        channel: "王健林",
      },
    };
  },
  methods: {
    // 组织选择发生
    organizationSelectChange(organizationId) {
      this.changeOrganizationId(organizationId);
      // 重新获取商务、渠道
      Promise.all([
        this.$refs.businessList.getCommercialManagerFn(organizationId),
        this.getcommercialManagerplaceListFn(organizationId),
      ]);
    },
  },
};
</script>

<style scoped>
ul,
h3,
h4,
p {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 表单 */
.pricing-for .el-form {
  margin-bottom: 60px;
}
.pricing-for .el-form >>> .el-form-item__label {
  color: #2e3f5e;
}
.pricing-for .el-form .el-form-item .el-input,
.pricing-for .el-form .el-form-item .el-textarea {
  width: 100% !important;
}
.pricing-for .el-form .el-form-item >>> .el-textarea .el-textarea__inner {
  font-family: Microsoft Yahei;
}
.pricing-for .el-select,
::v-deep .pricing-for .el-form .el-select .el-input.el-input--medium {
  width: 100% !important;
}
/* 分页器 */
::v-deep .client-main .pagination {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 50px;
}

/* 右侧按钮样式 */
::v-deep .subBtn {
  padding: 8px 30px !important;
  z-index: 99;
}
::v-deep .subBtn > .el-button {
  width: 100px;
  padding: 8px 0 !important;
  font-size: 14px;
  color: #606e84;
}
::v-deep .subBtn > .el-button.el-button--primary {
  background-color: #f87a23;
  border-color: #f87a23;
  color: #fff;
}
</style>